<div class="main-container col2-right-layout">
	<div class="container">
		<div class="row">
			<div class="col-xs-12">
				<div class="main">
					<div class="breadcrumbs">
						<ul>
							<li class="home">
								<?php
                                	echo CHtml::link('Trang chủ',DOMAIN,array('title'=>'Trang chủ'));
                                ?>
								<span>
									>
								</span>
							</li>
							<li class="category3">
								<strong>
									Audio &amp; Video
								</strong>
							</li>
						</ul>
					</div>
					<div class="row">
						<div class="col-main col-xs-12 col-sm-9">
							<div class="padding-s">
								<div class="page-title category-title">
									<h1>
										Audio &amp; Video
									</h1>
								</div>
                                <?php 
                                	if(count($model)>0){ 
                                ?>
								<div class="category-products">
									<?php
                                        include('includes/toolbar.php'); 	
                                    ?>
									<ol class="products-list" id="products-list">
                                    <?php
                                        $i=0;
                                        foreach ($model as $product_list) {
                                    ?>
										<li class="item <?php ($i==count($model))?"last":"";?>">
                                            <?php
                                                echo CHtml::link('<img src="'.$product_list['product_image'].'" alt="'.$product_list['product_name'].'"/>',array('Browser/Detail','id'=>$product_list['product_id']),array('class'=>'product-image'));
                                                //echo "<a class='product-image' href='".$this->createUrl('/san-pham/'.$product_list['product_id'])."/".FormHelper::ConvertTitleToUrl($product_list['product_name']).".html'><img src=".$product_list['product_image']." alt=".$product_list['product_name']."></a>";		
                                            ?>
											<div class="product-shop">
												<div class="f-fix">
													<div class="list-left">
														<h2 class="product-name">
														<?php
                                                            echo CHtml::link($product_list['product_name'],array('Browser/Detail','id'=>$product_list['product_id']),array('title'=>$product_list['product_name']));
                                                            //echo "<a href='".$this->createUrl('/san-pham/'.$product_list['product_id'])."/".FormHelper::ConvertTitleToUrl($product_list['product_name']).".html'>".$product_list['product_name']."</a>";	
                                                        ?>
														</h2>
														<div class="desc std">
															Short Desc<br/>
															<?php
                                                                echo CHtml::link("Chi tiết",array('Browser/Detail','id'=>$product_list['product_id']),array('title'=>$product_list['product_name']));
                                                                //echo "<a href='".$this->createUrl('/san-pham/'.$product_list['product_id'])."/".FormHelper::ConvertTitleToUrl($product_list['product_name']).".html'>".$product_list['product_name']."</a>";	
                                                            ?>
														</div>
													</div>
													<div class="list-right">
														<div class="price-box">
															<span class="regular-price" id="product-price-5">
																<span class="price">
																	<?php
                                                                        echo Yii::app()->numberFormatter->formatDecimal($product_list['product_price'],0).Yii::app()->params['currency'];	
                                                                    ?>
																</span>
															</span>
														</div>
														<button type="button" title="Add to Cart" class="button btn-cart" onclick="setLocation('http://livedemo00.template-help.com/magento_48515/audio-video-8/samsung-ln22a450-22-inch-720p-lcd-hdtv-black.html')">
															<span>
																<span>
																	Thêm vào giỏ
																</span>
															</span>
														</button>
														<ul class="add-to-links">
															<li>
																<a title="Add to Wishlist" href="#" class="link-wishlist tooltips">Add to Wishlist</a>
															</li>
															<li>
																<span class="separator">
																	|
																</span>
																<a title="Chọn để so sánh" href="#" class="link-compare tooltips">So sánh</a>
															</li>
														</ul>
													</div>
													<div class="clear">
													</div>
												</div>
											</div>
											<div class="label-product">
											</div>
										</li>
                                        <?php
                                            $i++;
                                        	}
                                        ?>
									</ol>
									<script type="text/javascript">
										decorateList('products-list', 'none-recursive')
									</script>
									<div class="toolbar-bottom">
									<?php
                                        include('includes/toolbar.php'); 	
                                    ?>
									</div>
								</div>
                                <?php
                                	}
                                ?>
								<div id="map-popup" class="map-popup" style="display:none;">
									<a href="#" class="map-popup-close" id="map-popup-close">x</a>
									<div class="map-popup-arrow">
									</div>
									<div class="map-popup-heading">
										<h2 id="map-popup-heading">
										</h2>
									</div>
									<div class="map-popup-content" id="map-popup-content">
										<div class="map-popup-msrp" id="map-popup-msrp-box">
											<strong>
												Price:
											</strong>
											<span style="text-decoration:line-through;" id="map-popup-msrp">
											</span>
										</div>
										<div class="map-popup-price" id="map-popup-price-box">
											<strong>
												Actual Price:
											</strong>
											<span id="map-popup-price">
											</span>
										</div>
										<div class="map-popup-checkout">
											<form action="" method="POST" id="product_addtocart_form_from_popup">
												<input type="hidden" name="product" class="product_id" value="" id="map-popup-product-id" />
												<div class="additional-addtocart-box">
												</div>
												<button type="button" title="Add to Cart" class="button btn-cart" id="map-popup-button">
													<span>
														<span>
															Add to Cart
														</span>
													</span>
												</button>
											</form>
										</div>
										<script type="text/javascript">
											//<![CDATA[
											document.observe("dom:loaded", Catalog.Map.bindProductForm);
											//]]>
											
										</script>
									</div>
									<div class="map-popup-text" id="map-popup-text">
										Our price is lower than the manufacturer's &quot;minimum advertised price.&quot; As a result, we cannot show you the price in catalog or the product page.
										<br />
										<br />
										You have no obligation to purchase the product once you know the price. You can simply remove the item from your cart.
									</div>
									<div class="map-popup-text" id="map-popup-text-what-this">
										Our price is lower than the manufacturer's &quot;minimum advertised price.&quot; As a result, we cannot show you the price in catalog or the product page.
										<br />
										<br />
										You have no obligation to purchase the product once you know the price. You can simply remove the item from your cart.
									</div>
								</div>
							</div>
						</div>
						<?php
                          	include('includes/viewby_right.php');
                          ?>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<?php 
    Yii::app()->getClientScript()->registerCssFile(CSS_FOLDER.'cwidgets.css','all'); 
    Yii::app()->getClientScript()->registerCssFile(CSS_FOLDER.'widgets.css','all'); 
?>